<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-demo.js"></script>
<title>jquery examples</title>
</head>
<body>
	1.<a href="${pageContext.request.contextPath}/jquery/selector.jsp">val(),html(),attr() 区别</a>
	<br></br>
		<b>替换#div1 的内容</b> <div id="div1">div content.</div>
	<input type="text" name="divtxt" id="divtxt"><input type="button" width="100px" id="b1" value="替换div" size="20" />
	<input type="button" width="100px" id="b2" value="追加div" size="20" onclick="changeDiv2('divtxt');"/>
	
	
	<br/><br/>
	  <input type="text" name="test" value="111"/>
	  <input type="checkbox" name="checkbox_list" value="1"/>checkbox_list
	  <input type="checkbox" name="checkbox_list" value="2"/>checkbox_list
	  <input type="checkbox" name="checkbox_list" value="3"/>checkbox_list
	  <input type="checkbox" name="checkbox_list" value="4"/>checkbox_list
	  <input type="checkbox" name="checkbox2_list" value="5" id="checkbox2_list"/>checkbox2_list
	  <input type="submit" name="ttt" value="3333" />
	  <select name="sel" id="selId">
	  	<option value="1">1</option>
	  	<option value="2">2</option>
	  	<option value="3">3</option>
	  	<option value="4">4</option>
	  </select>
	  
	<input type="button" value="checkbox_list_val" onclick="showCheckboxVal();">
</body>
</html>